package com.guigu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 前台用户表
 * </p>
 *
 * @author Mr.Zhang
 * @since 2025-03-12
 */
@Data
@TableName("consumer")
public class Consumer implements Serializable {

    private static final long serialVersionUID=1L;

    //@ApiModelProperty(value = "前台用户id，主键，自增")
      @TableId(value = "consumer_id", type = IdType.AUTO)
    private Integer consumerId;

    //@ApiModelProperty(value = "昵称")
    private String nickName;

    //@ApiModelProperty(value = "登录帐号")
    private String loginName;

    //@ApiModelProperty(value = "登录密码")
    private String password;

    //@ApiModelProperty(value = "手机号码")
    private String phone;

    //@ApiModelProperty(value = "帐户余额")
    private Float balance;

    //@ApiModelProperty(value = "头像")
    private String avatarImg;

    //@ApiModelProperty(value = "真实姓名")
    private String realName;

    //@ApiModelProperty(value = "性别")
    private String sex;

    //@ApiModelProperty(value = "生日")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birth;

    //@ApiModelProperty(value = "个人介绍")
    private String introduce;

    //@ApiModelProperty(value = "创建时间")
    private Date createDate;

    //@ApiModelProperty(value = "更新时间")
    private Date updateDate;

    //@ApiModelProperty(value = "是否是商户，S001-1（普通用户），S001-3（商户）")
    private String merchantTag;

    //@ApiModelProperty(value = "是否是供货商，S001-1（普通用户），S001-3（供货商）")
    private String supplierTag;

    //@ApiModelProperty(value = "是否删除，C001-1（未删除）、C001-2（已删除）")
    private String status;

    //地址
    @TableField(exist = false)
    private List<UserAddress> userAddress;

}
